package com.learn.designPatterns.behavioral.vistor;

/**
 * @classname:
 * @Description:
 * @author: yfpu
 * @Date: 2018-10-26 14:51
 */
public class Item implements Element{

    private String name;

    public Item(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public void accept(Vistor vistor) {
        vistor.visit(this);
    }
}
